You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLVector Class > TOpenCLVector Methods > TOpenCLVector.UpSample Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLVector.UpSample Method

Inserts zeroes between consecutive vector values.

Syntax
C#
Visual Basic
public TOpenCLVector UpSample([In] TOpenCLMtxVec Src, int Factor, int Phase);

Inserts zeroes between consecutive vector values. The method copies the values from Src to the calling vector and places Factor-1 zeros between consecutive values. The TOpenCLBase.LengthLengthand TOpenCLBase.ComplexComplex properties of the calling vector are set implicitly. Phase parameter defines the initial sample offset and must be less than Factor.

var a,b: TOpenCLVector; begin clMtxVec.CreateIt(a,b); try b.CopyFromArray(TSingleArray.Create(0,0,1,3,2)); a.UpSample(b,2); // a = [0,0,0,0,1,0,3,0,2,0] finally clMtxVec.FreeIt(a,b); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!